package com.smooth.dao.gen;

import com.smooth.dao.gen.bean.BizJobApplay;
import com.smooth.dao.gen.bean.BizJobApplayExample;
import java.util.List;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.DeleteProvider;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.SelectProvider;
import org.apache.ibatis.annotations.Update;
import org.apache.ibatis.annotations.UpdateProvider;
import org.apache.ibatis.type.JdbcType;

public interface BizJobApplayMapper {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table biz_job_applay
     */
    @SelectProvider(type=BizJobApplaySqlProvider.class, method="countByExample")
    long countByExample(BizJobApplayExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table biz_job_applay
     */
    @DeleteProvider(type=BizJobApplaySqlProvider.class, method="deleteByExample")
    int deleteByExample(BizJobApplayExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table biz_job_applay
     */
    @Delete({
        "delete from biz_job_applay",
        "where id = #{id,jdbcType=VARCHAR}"
    })
    int deleteByPrimaryKey(String id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table biz_job_applay
     */
    @Insert({
        "insert into biz_job_applay (id, job_id, ",
        "job_title, stu_id, ",
        "stu_name, stu_tel_no, ",
        "college_id, college_name, ",
        "comp_id, comp_name, ",
        "applay_status, apply_type, ",
        "create_date, update_date)",
        "values (#{id,jdbcType=VARCHAR}, #{jobId,jdbcType=VARCHAR}, ",
        "#{jobTitle,jdbcType=VARCHAR}, #{stuId,jdbcType=VARCHAR}, ",
        "#{stuName,jdbcType=VARCHAR}, #{stuTelNo,jdbcType=VARCHAR}, ",
        "#{collegeId,jdbcType=VARCHAR}, #{collegeName,jdbcType=VARCHAR}, ",
        "#{compId,jdbcType=VARCHAR}, #{compName,jdbcType=VARCHAR}, ",
        "#{applayStatus,jdbcType=SMALLINT}, #{applyType,jdbcType=SMALLINT}, ",
        "#{createDate,jdbcType=TIMESTAMP}, #{updateDate,jdbcType=TIMESTAMP})"
    })
    int insert(BizJobApplay record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table biz_job_applay
     */
    @InsertProvider(type=BizJobApplaySqlProvider.class, method="insertSelective")
    int insertSelective(BizJobApplay record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table biz_job_applay
     */
    @SelectProvider(type=BizJobApplaySqlProvider.class, method="selectByExample")
    @Results({
        @Result(column="id", property="id", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="job_id", property="jobId", jdbcType=JdbcType.VARCHAR),
        @Result(column="job_title", property="jobTitle", jdbcType=JdbcType.VARCHAR),
        @Result(column="stu_id", property="stuId", jdbcType=JdbcType.VARCHAR),
        @Result(column="stu_name", property="stuName", jdbcType=JdbcType.VARCHAR),
        @Result(column="stu_tel_no", property="stuTelNo", jdbcType=JdbcType.VARCHAR),
        @Result(column="college_id", property="collegeId", jdbcType=JdbcType.VARCHAR),
        @Result(column="college_name", property="collegeName", jdbcType=JdbcType.VARCHAR),
        @Result(column="comp_id", property="compId", jdbcType=JdbcType.VARCHAR),
        @Result(column="comp_name", property="compName", jdbcType=JdbcType.VARCHAR),
        @Result(column="applay_status", property="applayStatus", jdbcType=JdbcType.SMALLINT),
        @Result(column="apply_type", property="applyType", jdbcType=JdbcType.SMALLINT),
        @Result(column="create_date", property="createDate", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="update_date", property="updateDate", jdbcType=JdbcType.TIMESTAMP)
    })
    List<BizJobApplay> selectByExample(BizJobApplayExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table biz_job_applay
     */
    @Select({
        "select",
        "id, job_id, job_title, stu_id, stu_name, stu_tel_no, college_id, college_name, ",
        "comp_id, comp_name, applay_status, apply_type, create_date, update_date",
        "from biz_job_applay",
        "where id = #{id,jdbcType=VARCHAR}"
    })
    @Results({
        @Result(column="id", property="id", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="job_id", property="jobId", jdbcType=JdbcType.VARCHAR),
        @Result(column="job_title", property="jobTitle", jdbcType=JdbcType.VARCHAR),
        @Result(column="stu_id", property="stuId", jdbcType=JdbcType.VARCHAR),
        @Result(column="stu_name", property="stuName", jdbcType=JdbcType.VARCHAR),
        @Result(column="stu_tel_no", property="stuTelNo", jdbcType=JdbcType.VARCHAR),
        @Result(column="college_id", property="collegeId", jdbcType=JdbcType.VARCHAR),
        @Result(column="college_name", property="collegeName", jdbcType=JdbcType.VARCHAR),
        @Result(column="comp_id", property="compId", jdbcType=JdbcType.VARCHAR),
        @Result(column="comp_name", property="compName", jdbcType=JdbcType.VARCHAR),
        @Result(column="applay_status", property="applayStatus", jdbcType=JdbcType.SMALLINT),
        @Result(column="apply_type", property="applyType", jdbcType=JdbcType.SMALLINT),
        @Result(column="create_date", property="createDate", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="update_date", property="updateDate", jdbcType=JdbcType.TIMESTAMP)
    })
    BizJobApplay selectByPrimaryKey(String id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table biz_job_applay
     */
    @UpdateProvider(type=BizJobApplaySqlProvider.class, method="updateByExampleSelective")
    int updateByExampleSelective(@Param("record") BizJobApplay record, @Param("example") BizJobApplayExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table biz_job_applay
     */
    @UpdateProvider(type=BizJobApplaySqlProvider.class, method="updateByExample")
    int updateByExample(@Param("record") BizJobApplay record, @Param("example") BizJobApplayExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table biz_job_applay
     */
    @UpdateProvider(type=BizJobApplaySqlProvider.class, method="updateByPrimaryKeySelective")
    int updateByPrimaryKeySelective(BizJobApplay record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table biz_job_applay
     */
    @Update({
        "update biz_job_applay",
        "set job_id = #{jobId,jdbcType=VARCHAR},",
          "job_title = #{jobTitle,jdbcType=VARCHAR},",
          "stu_id = #{stuId,jdbcType=VARCHAR},",
          "stu_name = #{stuName,jdbcType=VARCHAR},",
          "stu_tel_no = #{stuTelNo,jdbcType=VARCHAR},",
          "college_id = #{collegeId,jdbcType=VARCHAR},",
          "college_name = #{collegeName,jdbcType=VARCHAR},",
          "comp_id = #{compId,jdbcType=VARCHAR},",
          "comp_name = #{compName,jdbcType=VARCHAR},",
          "applay_status = #{applayStatus,jdbcType=SMALLINT},",
          "apply_type = #{applyType,jdbcType=SMALLINT},",
          "create_date = #{createDate,jdbcType=TIMESTAMP},",
          "update_date = #{updateDate,jdbcType=TIMESTAMP}",
        "where id = #{id,jdbcType=VARCHAR}"
    })
    int updateByPrimaryKey(BizJobApplay record);
}